﻿package mortal.game.view.chat.smallChat
{
    import __AS3__.vec.*;
    import com.gengine.utils.pools.*;
    import com.mui.controls.*;
    import mortal.game.view.chat.chatPanel.*;
    import mortal.game.view.chat.chatViewData.*;

    public class SmallChatCellRenderer extends GSprite
    {
        protected var _chatNotes:ChatNotes;
        protected var _chatItemData:ChatItemData;

        public function SmallChatCellRenderer()
        {
            return;
        }// end function

        public function setData(param1:Object, param2:int = 180, param3:int = 50) : void
        {
            var _loc_4:* = param1 as SmallChatData;
            var _loc_5:* = ChatMessageWorking.getCellDatasByAnalyzeRumor(_loc_4.content, _loc_4.aryPlayer);
            this._chatItemData = ObjectPool.getObject(ChatItemData);
            this._chatItemData.type = _loc_4.type;
            this._chatItemData.cellVector = _loc_5;
            this._chatNotes = ObjectPool.getObject(ChatNotes);
            this._chatNotes.init(this._chatItemData, param2, param3);
            this.addChild(this._chatNotes);
            return;
        }// end function

        override public function get height() : Number
        {
            return this._chatNotes.height;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._chatItemData.dispose(param1);
            this._chatItemData = null;
            this._chatNotes = null;
            return;
        }// end function

    }
}
